home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12096 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: sn.no!usenet
  2. From: Ola Nohr <onohr@sn.no>
  3. Newsgroups: comp.lang.c++
  4. Subject: Calling a 16-bit DLL from a 32-bit App.
  5. Date: 18 Mar 1996 08:43:13 GMT
  6. Organization: SN Internett
  7. Message-ID: <4ij7n1$m7h@hasle.sn.no>
  8. NNTP-Posting-Host: aksess-gw-5.ppp.sn.no
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
  13.  
  14. Hello!
  15.  
  16. I am porting a 16-bit application from Borland C++ 3.1 to Visual C++ 
  17. 4.0. The application uses a library that I still want to use. This 
  18. library is 16-bit, so the question is:
  19.  
  20.     How do I make calls to this DLL (link it into the project) ?
  21.  
  22. I tried to include the lib-file in the project, but it did'nt work.
  23.  
  24.  
  25. The headerfile that follows the 16-bit DLL has the following text 
  26. inside:
  27.  
  28.     /******* IMPORTANT NOTES FOR IBM OS/2 2.0 USERS *******/
  29.     /* QELIB is a 16-bit DLL.  32-bit applications must   */
  30.     /* take special care when calling a 16-bit DLL. First,*/
  31.     /* all QELIB routines must be declared FAR16. Second, */
  32.     /* any buffers passed to QELIB must not cross a 64K   */
  33.     /* boundary. This can be assured by allocating tiled  */
  34.     /* memory.                              */
  35.     /******************************************************/
  36.  
  37.  
  38. Please reply by email.
  39.  
  40. Thanks in advance.
  41.  
  42.  
  43. - Ola
  44.  
  45.